<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta content="gudals@gmail.com" name="author" />
    <title><?php echo $title_in_template; ?></title>
    <?php echo $css_in_template; ?>
    <!--[if lt IE 9]>
        <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
</head>
<body>

<?php

// top layout 세팅
if ($this->sTopLayoutView) {
    $sTopLayout = $this->getTopLayout();
    if (file_exists($sTopLayout)) {
        // aside 여부
        $sAsideLayoutView = $this->sAsideLayoutView;
        require_once ($sTopLayout);

    } else {
        __d('[VIEW FILE NOT FOUND!!] '.$sTopLayout);
    }
}

// view 파일 세팅
$sViewFilePath = SC_DIR_VIEW.'/'.$sViewFile;
if (file_exists($sViewFilePath)) {
    require_once($sViewFilePath);
} else {
    __d('[FILE NOT FOUND!! VIEW] : '.$sViewFilePath);
}

// footer layout 세팅
if ($this->sFooterLayoutView) {
    $sFooterLayout = $this->getFooterLayout();
    if (file_exists($sFooterLayout)) {
        require_once ($sFooterLayout);

    } else {
        __d('[VIEW FILE NOT FOUND!!] '.$sFooterLayout);
    }
}

//echo $contents_in_template;
?>

<?php echo $js_in_template; ?>
</body>
</html>